Smush\Core\Stats D

Total Complexity 174
Dependencies 6
Dependents 1
Total lines 926
Lines of code 510
Logical lines of code 302
Comment lines 265
Methods 23
Properties 4

Methods 23

Method Rating Maintainability Complexity Lines of code
global_stats()
D
31 35 97
get_savings()
B
37 21 74
get_stats_for_attachments()
B
43 20 43
combine_conversion_stats()
A
53 10 21
run_query()
A
46 9 36
combined_stats()
A
53 10 20
total_compression()
A
57 9 15
set_pro_savings()
A
52 8 25
setup_global_stats()
A
54 8 20
get_unsmushed_attachments()
S
58 8 15
get_smushed_attachments()
S
54 6 21
add_to_media_attachments_list()
S
61 5 12
remaining_count()
S
64 5 9
get_media_attachments()
S
59 3 14
remove_from_media_attachments_list()
S
62 3 11
skipped_count()
S
63 3 10
add_to_smushed_list()
S
63 3 10
remove_from_smushed_list()
S
63 3 10
__construct()
S
57 1 19
get_attachments()
S
61 1 14
init()
S
98 1 1
update_lists()
S
77 1 4
get_super_smushed_attachments()
S
67 1 9